package com.micmac.main.mainmodel
{
	
	import mx.collections.ArrayCollection;

	
	public class MainModel
	{
		[Bindable]
		private static var instance:MainModel;
		
		public function MainModel(enforcer:SingletonEnforcer)
		{
			if (enforcer == null)
			{
				throw new Error ("You can only have One MySingleTon")
			}
		}
		public static function getInstance():MainModel
		{
			//return the Single Instance
			if(instance == null)
			{
				instance = new MainModel(new SingletonEnforcer);
			}
			return instance;
		}
	}
}
class SingletonEnforcer
{
	//Utility Class to Deny Access to Constructor
}